package com.dabbo.starship.block;

import java.rmi.RemoteException;

import com.dabbo.starship.cell.CellDefault;
import com.dabbo.starship.cell.CellEngine;
import com.dabbo.starship.cell.CellEngineCore;
import com.dabbo.starship.interfaces.Block;
import com.dabbo.starship.interfaces.Container;

public class BlockEngine extends BlockDefault {

	private static final long serialVersionUID = 238321383328116210L;

	// XXXXXXXXX
	// XX     XX
	// X       X
	// X X E X X
	// X XEEEX X
	// X XEEEX X
	// X XEEEX X
	// XXXEEEXXX
	// XXXEEEXXX

	public BlockEngine(Container parent) throws RemoteException {
		super(parent);
		this.blockType = Block.BLOCK_ENGINE;
		this.description = "Engine Room";
		for (int y = 4; y < 9; y++) {
			this.grid[y][2] = new CellDefault(this);			
			this.grid[y][3] = new CellEngine(this);
			this.grid[y][4] = new CellEngine(this);			
			this.grid[y][5] = new CellEngine(this);			
			this.grid[y][6] = new CellDefault(this);
		}
		this.grid[3][2] = new CellDefault(this);
		this.grid[3][4] = new CellEngineCore(this);
		this.grid[3][6] = new CellDefault(this);
	}
	
}
